<%@page import="com.lei.sqlGoodsJsp.entity.LoginUserEntity"%>
<%@page import="com.lei.sqlGoodsJsp.entity.Page"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
		Page<LoginUserEntity> pageCard = (Page<LoginUserEntity>) request.getAttribute("user");
	%>
		<%="数据量"+pageCard.getCount() %>
		<table border="1" width="300px">
		<tr>
			<td>ID</td>
			<td>登录用户</td>
			<td>登录IP</td>
			<td>登录状态</td>
			<td>登录时间</td>
		</tr>
		<%for (LoginUserEntity card : pageCard.getData()) {
			 %>	
			<tr>
			<td>
			<%=card.getId() %>
			</td>
			<td>
			<%=card.getLoginUser() %>
			</td>
			<td>
			<%=card.getLoginIp() %>
			</td>
			<td>
			<%=card.getLoginStatus() %>
			</td>
			<td>
			<%=card.getLoginTime() %>
			</td>
			</tr>
			<%
		}
		 %>
		
		</table>
		 <%for (int i=1;i<=pageCard.getTotalPage();i++){
			if(i==pageCard.getCurrentPage()){
				//abc"
				String abc ="abc\"";
				out.print("  "+i);
			}else{
				out.print("  <a href =\"UserLoginServlet?method=list&currentPage="+i+"\">"+i+"</a>");
			}
		} %>

</body>
</html>